#ifndef GUI_GLOBALS_H
#define GUI_GLOBALS_H

#define MONDE_SCALE_FACTOR 1
#define WIDTH 640
#define HEIGHT 400
#define MAX_SETTINGS 10
#define MAX_SETTING_LENGTH 30
#define SETTINGS_FILENAME "gui_settings.conf"
#define MAX_ZOOM_SCALE 5.0
#define MIN_ZOOM_SCALE 1.0

extern t_avion** lesavions;
extern t_utils *variables;

enum {VUE_MONDE,VUE_AEROPORT};

extern GtkWidget* fenetre;
extern GtkWidget* fenetre_vbox;
extern GtkWidget* debug_label;

//vues aeroport/monde
//containers
extern GtkWidget* container_monde;
extern GtkWidget* container_aeroport;
//goocanvas
extern GtkWidget* g_monde ;
extern GtkWidget* g_aeroport ;
//lancement de la simulation
extern GtkWidget* sim_vitesse_spin;
extern gboolean simulation_started;
//items goocanvas racines, dessinables
extern GooCanvasItem* r_monde ;
extern GooCanvasItem* r_aeroport ;
extern GooCanvasItem* groupe_monde;

//boutons haut
extern GtkWidget* regenerer_dialogue;

//simulation & états
extern gboolean gui_started;
extern gboolean simulation_can_run;
//temps
extern gdouble simulation_current_ut;
extern gdouble simulation_max_ut;
//label date
extern GtkWidget* date_label;
extern GtkWidget* regenerer_spin_box;

extern GtkWidget* toolbar_bas;


//_settings <= recoit le contenu du fichier settings indique
extern char _settings[MAX_SETTINGS][2][MAX_SETTING_LENGTH];
extern int _nb_settings;

extern gboolean mode_deplacement;
extern gboolean mode_selection;
extern gboolean mode_zoom;

extern gdouble hpage_size;
extern gdouble vpage_size;

extern GtkWidget* bouton_zoom;
extern GtkWidget* bouton_selection;
extern GtkWidget* bouton_deplacer;

extern GooCanvasItem** goo_avions;
extern GooCanvasItem** goo_aeroports;

extern GtkWidget* label_avions_vol;
extern GtkWidget*label_avions_decollage;
extern GtkWidget*label_avions_atterrissage;
extern GtkWidget*label_avions_parking;
extern GtkWidget*dialogue_info_aero;

#endif
